<template>
  <div class="header">
    <span class="text">我是头部</span>
  </div>
</template>

<script>
export default {
  name: "MyHeader",
};
</script>

<style scoped>
/* 加完scoped后代表，当前这些样式只能用在本文件 */
.header {
  height: 50px;
  background-color: #f00;
  text-align: center;
}
.text {
  color: yellow;
}
</style>